<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/person/";  //应用的地址名
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>个人信息编辑</title>
    <link rel="stylesheet" type="text/css" href="<%=path%>/js/jquery-easyui-1.2/themes/default/easyui.css"><!-- easyui默认样式 -->
    <link rel="stylesheet" type="text/css" href="<%=path%>/css/themes/default/csmis.css"><!-- 自定义样式 -->
    		<style>
		html,body {overflow-y:auto!important;*overflow-y:scroll;}
		</style>
<script type="text/javascript">
<!--
           $(function(){
               //初始化工作，因为远程载入该界面时无法通过在标签中进行设置相应的验证属性等信息，必须要在这里进行初始化
               $('#modify').linkbutton();
              
               //籍贯
               $('#vcHome').validatebox({
                   validType:'length[1,20]&specialChar'
               });
               //办公电话
               $('#vcTel').validatebox({
                   validType:'length[1,20]&specialChar'
               });
               //手机
               $('#vcMobile').validatebox({
                   validType:'length[1,11]&specialChar'
               });
               //家庭电话
               $('#vcPhone').validatebox({
                   validType:'length[1,20]&specialChar'
               });
               //电子邮件
               $('#vcMailName').validatebox({
                   validType:'email&length[1,30]'
               });
               //家庭住址
               $('#vcAddress').validatebox({
                   validType:'length[1,50]&specialChar'
               });
               //工号
               $('#vcNumber').validatebox({
                   validType:'length[1,20]&specialChar'
               });
               //备注
               $('#vcNote').validatebox({
                   validType:'length[1,200]&specialChar'
               });
               $('#vcDesc').validatebox({
                   validType:'length[1,300]&specialChar'
               });
              
               //初始化日期选择
               $("#dtBorn").datebox({required:true,missingMessage:'必须录入出生日期！',validType:'validDate'});
               $("#vcJoin").datebox({required:true,missingMessage:'必须录入入路时间！',validType:'validDate'});  
	           //点击添加按钮操作
			   $('#add').click(function(){
                  $('#modifyForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#modifyForm').form({
			        url:'<%=basePath%>SysPersonSelf_modify.action?op=savejs',
			        onSubmit: function(){
			             if($(this).form('validate')){
			                 $.util.showLoading();
                             return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			           $.util.removeLoading();
			            returnOptMsg(data);
			            document.location.href = '<%=path%>/sys/person/SysPersonSelf.action'; 
			        }
				});
	            
           });
//-->
</script>
  </head>
  
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<s:form id="modifyForm" action="SysPerson_modifyItemForJS" method="post"  enctype ="multipart/form-data">
<s:hidden id="vcId"  name="po.vcId" label="主键"></s:hidden>
<s:hidden id="vcStatus"  name="po.vcStatus" label="用户状态： 0-非系统用户 1-系统用户  9-超级管理员"></s:hidden>
<s:hidden id="vcPwd"  name="po.vcPwd" label="登录密码"></s:hidden>
<s:hidden id="nid"  name="po.nid" label="工作流中用到用户角色id"></s:hidden>
<s:hidden id="vcCrtr"  name="po.vcCrtr" label="最后编辑人"></s:hidden>
<s:hidden id="vcCrtrdate"  name="po.vcCrtrdate" label="记录日期，输入录入日期或者最后一次编辑或删除的日期"></s:hidden>
<s:hidden id="vcLastNumber"  name="po.vcLastNumber" label="用户最近一次使用的子系统编号"></s:hidden>
<s:hidden id="vcPhotoId"  name="po.vcPhotoId" label="照片id"></s:hidden>
<s:hidden id="nseq"  name="po.nseq" label="系统排序号"></s:hidden>
<s:hidden id="vcDelFlag"  name="po.vcDelFlag" label="删除标志位"></s:hidden>
<s:hidden id="vcOrgId"  name="po.vcOrgId" label="所属机构" ></s:hidden>
<s:hidden id="vcLogName"  name="po.vcLogName" label="登录名" ></s:hidden>
<s:hidden id="vcChiefType"  name="po.vcChiefType" label="职务等级" ></s:hidden>
<s:hidden id="vcFileId"  name="po.vcFileId"></s:hidden>
<table align="left" class="tb_add_th" style="width:100%;">
<tr><th align="left">姓名:</th><td><s:textfield id="vcName"  name="po.vcName" label="姓名" style="width:130px" ></s:textfield><font color="red">*</font></td><th align="left">工号:</th><td><s:textfield id="vcNumber"  name="po.vcNumber" label="工号" style="width:130px"></s:textfield></td></tr>
<tr><th align="left">性别:</th><td><s:select id="vcSex"  name="po.vcSex" style="width:130px"  list="#{0:'男',1:'女'}"></s:select></td><th align="left">所属机构:</th><td><s:property value="#session.loginUser.orgName"/></td></tr>
<tr><th align="left">职务或职名:</th><td><s:select id="vcPosition"  name="po.vcPosition" label="职务或职名" style="width:130px" emptyOption="true" list="#request.positionList" listKey="vcItemNumber" listValue="vcItemName"></s:select></td><th align="left">默认接受市局案源:</th><td><s:select id="vcDefault"  name="po.vcDefault" style="width:130px"  list="#{0:'否',1:'是'}"></s:select></td></tr>
<tr><th>出生年月:</th><td><s:textfield id="dtBorn"  name="po.dtBorn" style="width:130px"><s:param name="value" ><s:date name="po.dtBorn"   format="yyyy-MM-dd"/></s:param></s:textfield><font color="red">*</font></td><th>办公电话:</th><td><s:textfield id="vcTel"  name="po.vcTel" label="办公电话" style="width:130px" ></s:textfield></td></tr>
<tr><th>手机:</th><td><s:textfield id="vcMobile"  name="po.vcMobile" style="width:130px"></s:textfield></td><th>家庭电话:</th><td><s:textfield id="vcPhone"  name="po.vcPhone" label="家庭电话" style="width:130px"></s:textfield></td></tr>
<tr><th>电子邮件:</th><td><s:textfield id="vcMailName"  name="po.vcMailName" style="width:130px"></s:textfield></td><th>家庭住址:</th><td><s:textfield id="vcAddress"  name="po.vcAddress" label="家庭住址" style="width:130px"></s:textfield></td></tr>
<tr><td colspan="4"><font color="#FFA500">工作信息</font></td></tr>
<tr><th>政治面貌:</th><td><s:select id="vcPolitics"  name="po.vcPolitics" label="政治面貌" style="width:130px" emptyOption="true" list="#request.politicsList" listKey="vcItemNumber" listValue="vcItemName"></s:select></td><th>职称或技术等级:</th><td><s:select id="vcTitle"  name="po.vcTitle" label="职称或技术等级" style="width:130px" emptyOption="true" list="#request.titleList" listKey="vcItemNumber" listValue="vcItemName"></s:select></td></tr>
<tr><th>文化程度:</th><td><s:select id="vcGrade"  name="po.vcGrade" label="文化程度" style="width:130px" emptyOption="true" list="#request.gradeList" listKey="vcItemNumber" listValue="vcItemName"></s:select></td><th>入职时间:</th><td colspan="3"><s:textfield id="vcJoin"  name="po.vcJoin" label="入职时间" style="width:130px"><s:param name="value" ><s:date name="po.vcJoin"   format="yyyy-MM-dd"/></s:param></s:textfield><font color="red">*</font></td></tr>
<tr><th>备注:</th><td colspan="3"><s:textarea id="vcNote"  name="po.vcNote" label="备注" row="3" style="width:90%"></s:textarea></td></tr>
<tr><th colspan="4" style="height:60px"><a id="add"  iconCls="icon-save" href="javascript:void(0)"  class="easyui-linkbutton" >保存</a></th><tr>
	</table>
   </s:form>
  </body>
</html>